import Cookies from 'js-cookie';

// Token
const tokenKey = 'access_token';
export const getCookieToken = () => Cookies.get(tokenKey);
export const setCookieToken = token => Cookies.set(tokenKey, token, { expires: 24 });
export const removeCookieToken = () => Cookies.remove(tokenKey);

// User
const loginKey = 'login';
export const getCookieLogin = () => Cookies.get(loginKey);
export const setCookieLogin = userName => Cookies.set(loginKey, userName);
export const removeCookieLogin = () => Cookies.remove(loginKey);
